/**
 * ipassbook 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.persistence.iface;

import java.util.List;
import java.util.Map;
import java.util.Vector;

import com.wateray.ipassbook.domain.Passbook;
import com.wateray.ipassbook.domain.PassbookDetail;
import com.wateray.ipassbook.domain.form.PassbookForm;

/**
 * @author wateray
 * @create 2009-5-23
 */
public interface PassbookDao {

	Passbook getPassbookById(String passbookId);
	List<Passbook> getPassbookList();
	int insertPassbook(Passbook passbook);
	int insertPassbookDetail(PassbookDetail passbookDetail);
	int updatePassbook(Passbook passbook);
	int updatePassbookDetail(PassbookDetail passbookDetail);
	int deletePassbook(Passbook passbook);
	String getPassbookMaxId();
	String getPassbookDetailMaxId(String passbookId);
	
	int updatePassbookDetailBalance(PassbookDetail passbookDetail);
	
	List<PassbookForm> getPassbookFormList(String languageId);
	PassbookDetail getPassbookDetailById(Map<String, String> map);
}
